package com.tjetc.service;

import com.tjetc.domain.Doctor;
import com.tjetc.utils.PageInfo;

import java.util.List;

public interface DoctorService {

    Doctor login(String username, String password);

    Doctor findByName(String username);

    List<Doctor> selectFifth();

    List<Doctor> queryByDepid(int depid);

    int getCount(String name);

    List<Doctor> list(String name, PageInfo<Doctor> pageInfo);

    boolean add(Doctor doctor);

    boolean update(Doctor doctor);

    Doctor getById(int id);

    boolean del(int id);

    List<Doctor> listAll();
    //查询某医生所在科室的id
    int getDepidById(int id);


    Doctor getpwdById(int id);

    boolean updatepwd(Doctor doctor);
}
